home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_11_06
/
1106116a
< prev
next >
Wrap
Text File
|
1993-03-28
|
473b
|
23 lines
main()
{
File file1, file 2;
int return_code;
int ret1, ret2;
ret1 = File_initialize(&file1, "filename1", "purpose1");
ret2 = File_initialize(&file2, "filename2", "purpose2");
if (ret1 == SUCCESS && ret2 == SUCCESS))
{
return_code = 0;
/* Do whatever required */
}
else
return_code = 1;
File_terminate(&file1);
File_terminate(&file2);
exit(return_code);
}